package cn.easybuy.service;

import cn.easybuy.entity.PageInfo;
import cn.easybuy.entity.User;

import java.sql.SQLException;
import java.util.List;

import cn.easybuy.entity.User;

import java.sql.SQLException;

public interface UserService {

     boolean addUser(User u) throws SQLException;

     boolean delUsers(User u) throws SQLException;

     boolean updUsers(User u) throws SQLException;

     List<User> getListAll() throws SQLException;

    //分页查询
     PageInfo<User> listPage(PageInfo<User> page) throws Exception;
    // 注册用户
    boolean AddNews(User user) throws SQLException;
    // 重复手机号邮箱验证
    User selectUserInfo(User u) throws SQLException;
    // 登录功能
    User checkLogin(User u) throws SQLException;
}
